package com.dd.service;

import com.dd.dao.YuyueMapper;
import com.dd.pojo.Yuyue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class YuyueServiceImpl implements YuyueService{

    @Autowired
    YuyueMapper yuyueMapper;

    public List<Yuyue> findbyuname(String uname) {
        return yuyueMapper.findbyuname(uname);
    }

    public int deletebyid(int id) {
        return yuyueMapper.deletebyid(id);
    }

    public int addyuyue(Yuyue yuyue) {
        return yuyueMapper.addyuyue(yuyue);
    }
}
